package com.gt.web.srv.domain;

import com.baomidou.mybatisplus.annotation.IdType;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.annotation.TableId;
import lombok.Data;
import lombok.Builder;
import lombok.AllArgsConstructor;
import lombok.EqualsAndHashCode;
import lombok.NoArgsConstructor;
import lombok.experimental.Accessors;

import java.io.Serializable;
import java.math.BigDecimal;
import java.util.Date;

/**
 * 村民家庭积分流水明细表;
 *
 * @author Yu Chaohua
 * @date 2024-5-24
 */
@ApiModel(value = "村民家庭积分流水明细表", description = "")
@TableName("biz_family_score_log")
@Data
@Builder
@AllArgsConstructor
@NoArgsConstructor
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
public class BizFamilyScoreLogEntity extends BaseAuto implements Serializable {

    private static final long serialVersionUID = 1L;


    @ApiModelProperty(notes = "积分明细ID")
    @TableId(value = "id", type = IdType.AUTO)
    private Long id;

    @ApiModelProperty(notes = "交易流水号")
    @TableField(value = "order_serial_no")
    private String orderSerialNo;

    @ApiModelProperty(notes = "订单号码 或 文章号等等")
    @TableField(value = "order_no")
    private String orderNo;

    @ApiModelProperty(notes = "村民ID")
    @TableField(value = "people_id")
    private Long peopleId;

    @ApiModelProperty(notes = "家庭ID")
    @TableField(value = "family_id")
    private Long familyId;

    @ApiModelProperty(notes = "交易类型 1文章阅读奖励、2文章评论奖励、3文章收藏奖励、4其他奖励、5商品兑换、6商品退还、7系统调加、8系统调减、9兑换券")
    @TableField(value = "order_type")
    private Integer orderType;

    @ApiModelProperty(notes = "1收入 2支出")
    @TableField(value = "order_score_type")
    private Integer orderScoreType;

    @ApiModelProperty(notes = "交易积分数")
    @TableField(value = "change_score")
    private Integer changeScore;

    @ApiModelProperty(notes = "交易前积分余额数")
    @TableField(value = "total_score")
    private Integer totalScore;

    @ApiModelProperty(notes = "状态（0正常 1停用）")
    @TableField(value = "status")
    private Integer status;

    @ApiModelProperty(notes = "备注")
    @TableField(value = "remark")
    private String remark;

    @TableField(value = "community_id")
    private Integer communityId;

    @TableField(value = "community_name")
    private String communityName;


}